<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" href="/views/common/header.css">
<!--index-header-start-->
<div class="web-index-header">
    <div class="header-line-wrapper">
        <div class="header-wrapper">
            <div class="header-addr">
                <i class="iconfont icon-dizhi"></i>
                <span class="text">江苏</span>
            </div>
            <div class="header-nav">
                <ul class="nav">
                    <li>
                        <%--如果用户登录则显示用户电话，否则就显示登录和注册--%>
                        <c:if test="${user==null}">
                            <a class="login" href="/views/user/login/login.jsp">你好，请登录</a>
                            <a class="reg" href="/views/user/reg/reg.jsp">免费注册</a>
                        </c:if>
                        <c:if test="${user!=null}">
                            <div class="info">
                                <a href="/user/info">${user.phone}</a>
                            </div>
                            <div class="logout">
                                <a href="/user/logout">退出</a>
                            </div>
                        </c:if>
                    </li>
                    <li><a href="">我的订单</a></li>
                    <li><a href="">我的小东</a></li>
                    <li><a href="">小东会员</a></li>
                    <li><a href="">企业采购</a></li>
                    <li class="service">
                        <a href="" class="dropdown">
                            <span>客户服务</span>
                            <div class="dropdown-content">
                                <ul>
                                    <li>帮助中心</li>
                                    <li>售后服务</li>
                                    <li>在线客服</li>
                                    <li>意见建议</li>
                                    <li>电话客服</li>
                                </ul>
                            </div>
                        </a>
                    </li>
                    <li class="web-nav">
                        <a href="" class="dropdown">
                            <span>网站导航</span>
                            <div class="dropdown-content">
                                1354576
                            </div>
                        </a>
                    </li>
                    <li><a href="">手机小东</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="search-wrapper-outer">
        <div class="header-search-wrapper">
            <div class="logo-wrapper">
                <a class="link" href="">
                    <img class="link-img"
                         src="https://img10.360buyimg.com/img/jfs/t1/117726/20/7368/88789/5ec3777cE70ffaf64/47d8f5d0310958bd.gif"
                         alt="">
                </a>
            </div>
            <div class="search-wrapper">
                <div class="search">
                    <form action="">
                        <div class="text-wrapper">
                            <input class="input" type="text">
                            <i class="iconfont icon-changyongicon-"></i>
                        </div>
                        <div class="search-btn">
                            <i class="iconfont icon-fangdajing"></i>
                        </div>
                    </form>
                </div>
                <div class="settleup">
                    <div class="settleup-wrapper">
                        <div class="settleup-icon">
                            <i class="iconfont icon-gouwuchekong"></i>
                            <span class="count">0</span>
                        </div>
                        <div class="settleup-text">
                            <p class="text">我的购物车</p>
                        </div>

                    </div>
                </div>
            </div>
            <div class="treasure-wrapper">
                <a class="link" href="">
                    <img class="link-img"
                         src="https://img10.360buyimg.com/babel/jfs/t1/126056/40/2168/30597/5ec3b12dE58fbd0eb/ab789db06cf66463.png.webp"
                         alt="">
                </a>
            </div>
        </div>
    </div>
</div>
<!--index-header-end-->
